﻿Imports DAO
Imports DTO
Imports System.Collections
Public Class CBusiNhanVien
    Private daoNVien As New CDataNhanVien()

    Public Function DocBangNhanVien() As List(Of CNhanVien)

        Return daoNVien.DocBangNhanVien()

    End Function

    Public Sub ThemSuaNhanVien(ByVal newNV As CNhanVien, ByVal flag As Integer)
        daoNVien.ThemSuaNhanVien(newNV, flag)
    End Sub

    Public Sub XoaNhanVien(ByVal maNV As String)
        daoNVien.XoaNhanVien(maNV)
    End Sub

    Public Function TaoMaNhanVien(ByVal maNV As String, ByVal cot As String, ByVal bang As String, ByVal doDai As Integer) As String
        Return daoNVien.TaoMaNhanVien(maNV, cot, bang, doDai)
    End Function

    Public Function TimKiem(ByVal maNV As String, ByVal tenNV As String) As List(Of CNhanVien)
        Return daoNVien.TimKiem(maNV, tenNV)
    End Function

    Public Function LayMaNV(ByVal tenDN As String, ByVal pass As String) As String
        Return daoNVien.LayMaNV(tenDN, pass)
    End Function

    Public Function LayQuyen(ByVal maNV As String) As List(Of Integer)
        Return daoNVien.LayQuyen(maNV)
    End Function

    'Lay Ten Huyen 

End Class
